IPlatformFont Class Reference

platform font class More...

Inheritance diagram for IPlatformFont:
Inheritance graph
[legend]
Collaboration diagram for IPlatformFont:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual double getAscent () const =0
 returns the ascent line offset of the baseline of this font. If not supported returns -1
virtual double getDescent () const =0
 returns the descent line offset of the baseline of this font. If not supported returns -1
virtual double getLeading () const =0
 returns the space between lines for this font. If not supported returns -1
virtual double getCapHeight () const =0
 returns the height of the highest capital letter for this font. If not supported returns -1
virtual IFontPaintergetPainter ()=0
Reference Counting Methods



virtual void forget ()
 decrease refcount and delete object if refcount == 0
virtual void remember ()
 increase refcount
virtual int32_t getNbReference () const
 get refcount
Message Methods



virtual CMessageResult notify (CBaseObject *sender, IdStringPtr message)

Static Public Member Functions

static IPlatformFontcreate (UTF8StringPtr name, const CCoord &size, const int32_t &style)
static bool getAllPlatformFontFamilies (std::list< std::string > &fontFamilyNames)

Detailed Description

platform font class

Encapsulation of a platform font. You should never need to call IPlatformFont::create(..), instead use CFontDesc::getPlatformFont().


Member Function Documentation

static IPlatformFont* create ( UTF8StringPtr  name,
const CCoord size,
const int32_t &  style 
) [static]
virtual void forget (  )  [inline, virtual, inherited]

decrease refcount and delete object if refcount == 0

static bool getAllPlatformFontFamilies ( std::list< std::string > &  fontFamilyNames  )  [static]
virtual double getAscent (  )  const [pure virtual]

returns the ascent line offset of the baseline of this font. If not supported returns -1

virtual double getCapHeight (  )  const [pure virtual]

returns the height of the highest capital letter for this font. If not supported returns -1

virtual double getDescent (  )  const [pure virtual]

returns the descent line offset of the baseline of this font. If not supported returns -1

virtual double getLeading (  )  const [pure virtual]

returns the space between lines for this font. If not supported returns -1

virtual int32_t getNbReference (  )  const [inline, virtual, inherited]

get refcount

virtual IFontPainter* getPainter (  )  [pure virtual]
virtual CMessageResult notify ( CBaseObject sender,
IdStringPtr  message 
) [inline, virtual, inherited]
virtual void remember (  )  [inline, virtual, inherited]

increase refcount


The documentation for this class was generated from the following file:

Generated on Fri Nov 22 11:09:33 2013 for VSTGUI by  doxygen 1.6.1